sublime text3的配置代码

我习惯的配置代码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
"auto_find_in_selection": true,
"bold_folder_labels": true,
"font_face": "consolas",
"font_size": 15,
"highlight_line": true,
"highlight_modified_tabs": true,
"hot_exit": false,
"ignored_packages":
[
"Vintage"
],
"remember_open_files": false,
"tab_size": 4,
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
"update_check":false,
"word_wrap": true
}

配置中文
快捷键ctrl + ~

打开网址https://packagecontrol.io/installation,输入对应的代码

比如text3

1
import urllib.request,os,hashlib; h = '6f4c264a24d933ce70df5dedcf1dcaee' + 'ebe013ee18cced0ef93d5f746d80ef60'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)

等反应完

ctrl+p

输入localization就能看到相应的中文汉化插件